import request from '@/utils/request'

// 查询绿化管理列表
export function listWyGreenManagement(query) {
  return request({
    url: '/park/wyGreenManagement/list',
    method: 'get',
    params: query
  })
}

// 查询绿化管理详细
export function getWyGreenManagement(id) {
  return request({
    url: '/park/wyGreenManagement/' + id,
    method: 'get'
  })
}

// 新增绿化管理
export function addWyGreenManagement(data) {
  return request({
    url: '/park/wyGreenManagement',
    method: 'post',
    data: data
  })
}

// 修改绿化管理
export function updateWyGreenManagement(data) {
  return request({
    url: '/park/wyGreenManagement',
    method: 'put',
    data: data
  })
}

// 删除绿化管理
export function delWyGreenManagement(id) {
  return request({
    url: '/park/wyGreenManagement/' + id,
    method: 'delete'
  })
}
